#include "Negamax.h"


void Negamax::negamax(
					Score& res,
					SenetBoardDraft &board,
					int depth,
					const GameTimer& timer,
					bool checkTime, 
					Definitions::PlayerColor nextPlayer,
					NodeType nextTurn) throw (TIME_OUT)
{
// 	if(checkTime && timer.isMoveTimePassed(GameTimer::NO_OVERHEAD))
// 	{
// 		throw 0;
// 	}
// 	if(board.isTerminal() || depth == 0)
// 	{
// 		res.pieceToMove = -1;
// 		res.score = m_heuristic.score(board);
// 	}
// 	else
// 	{
// 		//more resources to use - continue search
// 		float sum = 0;
// 		for(int i = 0; i <= m_gameStickNum; ++i)
// 		{
// 			Score val = chanceSearch(board, depth-1  , timer , checkTime , nextPlayer , i , nextTurn , DONT_CARE);
// 			sum += m_probabilities.getProbability(i) * val.score;		
// 		}
// 		res.score = sum;
// 		res.pieceToMove = -1; 
// 	}	
}